/**
 * Copyright 2004 - 2007 Blue Bamboo International Inc. 
 *           All rights reserved.
 *
 *
 * Blue Bamboo PROPRIETARY/CONFIDENTIAL.
 *
 */

package com.bluebamboo.bluetools.pingpang.ui;

import java.text.MessageFormat;
import java.util.MissingResourceException;
import java.util.ResourceBundle;

/**
 * DOCME
 * 
 * @author Nick.Tan
 */
public class Messages {

	private static final String BUNDLE_NAME = "com.bluebamboo.bluetools.pingpang.ui.messages"; //$NON-NLS-1$
	private static final ResourceBundle bundle = ResourceBundle.getBundle(BUNDLE_NAME);

	public static String getString(String key) {
		try {
			return bundle.getString(key);
		}
		catch (MissingResourceException e) {
			return "!<" + key + ">!";
		}
	}

	public static String getString(String key, Object... args) {
		try {
			String msg = bundle.getString(key);
			return MessageFormat.format(msg, args);
		}
		catch (MissingResourceException e) {
			return "!<" + key + ">!";
		}
	}

	public static String ConnectDialog_title = "ConnectDialog_title";
}
